﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace Entity
{
    public class DocumentType
    {
        #region[Public Properties]

        public string Id { get; set; }
        public string Name { get; set; }
        public string Ord { get; set; }
        public string Active { get; set; }
        public string Lang { get; set; }
        public string Image { get; set; }

        #endregion

        #region[DocumentTypeIDataReader]

        public static DocumentType DocumentTypeIDataReader(IDataReader dr)
        {
            var obj = new DocumentType
                          {
                              Id = Convert.ToString(dr["Id"]),
                              Name = Convert.ToString(dr["Name"]),
                              Ord = Convert.ToString(dr["Ord"]),
                              Active = Convert.ToString(dr["Active"]),
                              Lang = Convert.ToString(dr["Lang"]),
                              Image = Convert.ToString(dr["Image"])
                          };

            return obj;

        }
        #endregion
    }
}
